//
//  ZXLoginAPI.h
//  ZXLoginKit
//
//  Created by 海参 on 2022/10/9.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface ZXLoginAPI : NSObject

+ (instancetype)sharedInstance;


///一键登录

///初始化
- (void)initWithUMAppKey:(NSString *)appKey;


/// 设置一键登录指定app密钥
/// @param auth 指定app密钥
- (void)setOneKeyLoginAuth:(NSString *)auth;


/// 检查一键登录环境
/// @param complete complete description
- (void)checkOneKeyLoginEnvAvailableWithComplete:(void (^)(BOOL enable))complete;


/// 调起一键登录页面
/// @param controller controller description
/// @param model 信息
/// @param complete complete description
- (void)chsOneKeyLoginWithController:(UIViewController *_Nonnull)controller
                               model:(id)model
                            complete:(void (^_Nullable)(NSDictionary * _Nonnull resultDic))complete;
@end

NS_ASSUME_NONNULL_END
